package com.easy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Bed {
        private int id;
        private int wid;
        private String status;

        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private Date createtime;
        private int bednember;

        public int getBednember() {
                return bednember;
        }

        public void setBednember(int bednember) {
                this.bednember = bednember;
        }

        @Override
        public String toString() {
                return "Bed{" +
                        "id=" + id +
                        ", wid=" + wid +
                        ", status='" + status + '\'' +

                        ", createtime=" + createtime +
                        ", bednember=" + bednember +
                        '}';
        }

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public int getWid() {
                return wid;
        }

        public void setWid(int wid) {
                this.wid = wid;
        }

        public String getStatus() {
                return status;
        }

        public void setStatus(String status) {
                this.status = status;
        }





        public Date getCreatetime() {
                return createtime;
        }

        public void setCreatetime(Date createtime) {
                this.createtime = createtime;
        }
}
